package com.xzm.project.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Button;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.xzm.project.R;
/**
 * author : xuzongmeng
 * date   : 2019/9/2
 * desc   : 描述
 */
public class MyIntentActivity extends AppCompatActivity {
    private Button btn;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_intent);
        btn = findViewById(R.id.btn);
//         new Handler().getLooper();
        btn.setOnClickListener(v -> {
            Intent intent = new Intent();
//            intent.setAction(Intent.ACTION_VIEW);
             intent.setAction("test_action");
             startActivity(intent);
        });
    }

}
